﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="WebInfo.ascx.cs" Inherits="Admin_System_Controls_WebInfo" %>
<p>
    <p>
        <asp:Label ID="Label2" runat="server" Text="服务器计算机名:"></asp:Label>
        <label>
            <%=Server.MachineName.ToString()%></label>
    </p>
    <p>
        <asp:Label ID="label1" runat="server">
            服务器IP地址</asp:Label>
        <label>
            <%=Request.ServerVariables["LOCAL_ADDR"]%>
        </label>
    </p>
    <p>
        <asp:Label ID="Label16" runat="server" Text="服务器域名:"></asp:Label>
        <label>
            <%=base.Request.ServerVariables["SERVER_NAME"]%>
        </label>
    </p>
    <p>
        <asp:Label ID="Label4" runat="server"> 服务器端口</asp:Label>
        <label>
            <%=base.Request.ServerVariables["SERVER_PORT"]%></label>
    </p>
    <p>
        <asp:Label ID="Label5" runat="server"> 服务器IIS版本</asp:Label>
        <label>
            <%=base.Request.ServerVariables["SERVER_SOFTWARE"]%></label>
    </p>
    <p>
        <asp:Label ID="Label6" runat="server"> 本文件路径</asp:Label>
        <label>
            <%=base.Request.ServerVariables["PATH_TRANSLATED"]%></label>
    </p>
    <p>
        <asp:Label ID="Label7" runat="server"> 服务器操作系统</asp:Label>
        <label>
            <%=Environment.OSVersion.ToString() %></label>
    </p>
    <p>
        <asp:Label ID="Label8" runat="server"> 服务器操作系统安装目录</asp:Label>
        <label>
            <%=Environment.SystemDirectory%></label>
    </p>
    <p>
        <asp:Label ID="Label9" runat="server"> 服务器脚本超时时间</asp:Label>
        <label>
            <%=base.Server.ScriptTimeout.ToString() %>
            seconds;</label>
    </p>
    <p>
        <asp:Label ID="Label10" runat="server"> 服务器的语言种类</asp:Label>
        <label>
            <%=base.Request.ServerVariables["HTTP_ACCEPT_LANGUAGE"]%></label>
    </p>
    <p>
        <asp:Label ID="Label11" runat="server">.NET Framework 版本</asp:Label>
        <label>
            <%= Environment.Version.ToString()%></label>
    </p>
    <p>
        <asp:Label ID="Label12" runat="server">  服务器当前时间</asp:Label>
        <label>
            <%=DateTime.Now.ToString()%></label>
    </p>
    <p>
        <asp:Label ID="Label13" runat="server"> 服务器上次启动到现在已运行</asp:Label>
        <label>
            <%=((((double)Environment.TickCount) / 3600000.0)).ToString("N2") + " 小时"%></label>
    </p>
    <p>
        <asp:Label ID="Label14" runat="server">逻辑驱动器</asp:Label>
        <%
            StringBuilder s = new StringBuilder();

            foreach (string str in Environment.GetLogicalDrives())
            {
                s.Append("  " + str.TrimEnd(new char[] { '\\' }));
            }
        %>
        <label>
            <%=s%>
        </label>
    </p>
    <p>
        <asp:Label ID="Label15" runat="server">CPU 总数</asp:Label>
        <label>
            <%= Environment.GetEnvironmentVariable("NUMBER_OF_PROCESSORS")%></label>
    </p>
</p>
